package com.house.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author: GGP
 * @description: 图片实体类
 * @time: 2023-04-13 22:29
 **/
@Getter
@Setter
@Entity
@Table(name = "img")
@ApiModel
public class Img extends CommonProperties{
	/** 图片url地址 */
	@ApiModelProperty(value = "图片url地址",name = "url",required = true)
	@Column(name = "url")
	private String url;

	/** 房源id */
	@ApiModelProperty(value = "房源id",name = "houseId",required = true)
	@Column(name = "house_id")
	private Integer houseId;
}
